package com.ld.security.server.admin.modules.ge.vo;

import com.ld.security.common.core.base.SuperVo;
import com.ld.security.common.mybatis.anno.JoinKey;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.server.admin.modules.ge.constant.GeProjectUserRelConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


@JoinKey(tableX = "ge_project a",tableY = "ge_project_user_rel b",on="a.id = b.project_id")
@Data
public class ProjectUserVo implements SuperVo {

    @SqlKey(name = "a.crtTime")
    @ApiModelProperty("创建时间")
    private Date crtTime;

    @SqlKey(name = "b.id")
    @ApiModelProperty("编号")
    private String id;

    @SqlKey(name = "a.label")
    @ApiModelProperty("标题")
    private String label;

    @SqlKey(name = "a.content")
    @ApiModelProperty("摘要")
    private String content;

    @SqlKey(name = "a.logo")
    @ApiModelProperty("图标")
    private String logo;

    @SqlKey(name = "a.id")
    @ApiModelProperty("工程编号")
    private String projectId;

    @SqlKey(name = "b.status")
    @ApiModelProperty("状态")
    private GeProjectUserRelConstant.status status;


    @SqlKey(name = "b.userId")
    @ApiModelProperty("用户编号")
    private String userId;
}
